package edu.gdkm.collection;

import java.io.IOException;

public class TestList {
    public static void main(String[] args) throws IOException {
        StudentManager sm = new StudentManager();
        sm.init();
//        System.out.println("学生总人数是："+sm.getStudentCount());
//        sm.printStudentList();
//        System.out.println(sm.findStudentBySnumber("23060201145"));
//        sm.pringStudentScore();
        Student student = new Student();
        student.setSname("张三");
        student.setSnumber("23060201288");
        sm.addStudent(student);
        sm.printStudentList();
        sm.pringStudentScore();
        System.out.println("当前最高分的同学是："+sm.getMaxScore());
        //新添加的元素总是在最后一个，即List是一个有序的集合
        System.out.println(sm.studentList.get(sm.studentList.size() - 1));
    }
}
